/*
 * @Author: 梓岄 3049738225@qq.com
 * @Date: 2025-11-28 21:16:26
 * @LastEditors: 梓岄 3049738225@qq.com
 * @LastEditTime: 2025-11-28 22:13:21
 * @FilePath: /test/Client.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include"Shm.hpp"


int main()
{
    Shm shm;
    shm.Get();
    shm.Attach();

    char* start_addr=(char*)shm.GetStartAddr();
    int size=shm.GetSize();

    int i=0;
    while(true)
    {
        std::cout<<"Please Enter@ ";
        std::cin>>start_addr[i++];
        i%=size;
    }

    shm.Delete();

    return 0;
}
